import { GET_USER_INFO_SUCCESS } from '@/actions/layout'

const initState = {
  account: '',
}

const layoutReducer = (state = initState, action) => {
  switch (action.type) {

    case GET_USER_INFO_SUCCESS:
      const { account } = action.data
      return { ...state, account }
      break;
  
    default:
      return state 
      break;
  }
}

export default layoutReducer